package com.cy.springboot04notice.dao;

import com.cy.springboot04notice.pojo.SysNotice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysNoticeDao {
    public int insertNotice(SysNotice notice);

    @Select("select * from sys_notice where id=#{id}")
    public SysNotice selectNoticeId(Integer id);

    public int updateNotice(SysNotice sysNotice);

    public int deleteNotice(Integer...ids);

    public List<SysNotice> selectNotices(SysNotice sysNotice);
}
